package HDFSTest;

import org.simgrid.msg.Task;

public class FileRequest extends Task {
	private String fileName;
	private String[] response;
	private boolean write;

	public FileRequest(String name, long size, boolean write, String fileName) {
		super(name, 0, size);
		this.fileName = fileName;
		this.write = write;
	}

	public FileRequest(String name, boolean write, String fileName) {
		this(name, 0, write, fileName);
	}

	public FileRequest(String name, String fileName) {
		this(name, false, fileName);
	}

	/**
	 * @return the fileName
	 */
	public String getFileName() {
		return fileName;
	}

	/**
	 * @return the response
	 */
	public String[] getResponse() {
		return response;
	}

	/**
	 * @param response
	 *            the response to set
	 */
	public void setResponse(String[] response) {
		this.response = response;
	}

	/**
	 * @return the write
	 */
	public boolean isWrite() {
		return write;
	}

}
